new Vue({
    el: "#app",
    data: {
        ifIndex: 0,
        currentIndex: 0,
        name: "饿了么",
        like: "猜你喜欢",
        arr: [
            "综合排序", "距离最近", "销售最高", "筛选"
        ],
        list: [{
            images: "img/1.png",
            name: "金百万烤鸭(西安高新店)",
            num: 230,
            price: "20 远距离配送￥3"
        }, {
            images: "img/1.png",
            name: "绝味鸭脖(西安长安店)",
            num: 300,
            price: "30 远距离配送￥5"
        },
        {
            images: "img/1.png",
            name: "肯德基(西安未央区店)",
            num: 500,
            price: "起送￥50 远距离配送￥5"
        },
        {
            images: "img/1.png",
            name: "麦道劳(西安雁塔区店)",
            num: 600,
            price: "起送￥40 远距离配送￥5"
        }

        ],
        footer: [
            { pic: 'img/首页.png', name: '首页' },
            { pic: 'img/订单.png', name: '订单' },
            { pic: 'img/我的.png', name: '我的' },
        ],
    },
    methods: {
        btn(index) {
            this.ifIndex = index;
            // console.log(ifIndex);
        },
        handleClick(index) {
            this.currentIndex = index;
        },

        opt() {
            location.href = "demo1.html"
        }
    }
})